package com.trip.back.stage.system.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.trip.back.stage.common.BaseController;
import com.trip.back.stage.common.result.JsonResult;
import com.trip.back.stage.system.entity.SysUser;

@RestController
public class MainController extends BaseController {

	
	@GetMapping("/userInfo")
    public JsonResult userInfo() {
		SysUser curUser = getLoginUser();
		curUser.setPassword("");
        return JsonResult.ok().put("user", curUser);
    }
}
